const connection = require("../app/database");

class authService{
  async login(user){
    const {account} = user;
    const statement = `SELECT * FROM user WHERE account = ?;` 
    const result = await connection.execute(statement,[account]);
    return result[0];
  }
}

module.exports = new authService();